3.2.35 \(\int \frac {1}{a+b x^2} \, dx\) [135]

Optimal. Leaf size=24 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]

[Out]

arctan(x*b^(1/2)/a^(1/2))/a^(1/2)/b^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {211} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[b]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[b])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin {align*} \int \frac {1}{a+b x^2} \, dx &=\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 24, normalized size = 1.00 \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^2)^(-1),x]

[Out]

ArcTan[(Sqrt[b]*x)/Sqrt[a]]/(Sqrt[a]*Sqrt[b])

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 16, normalized size = 0.67

method result size
default \(\frac {\arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}}\) \(16\)
risch \(-\frac {\ln \left (b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}+\frac {\ln \left (-b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}\) \(41\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*x^2+a),x,method=_RETURNVERBOSE)

[Out]

1/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))

________________________________________________________________________________________

Maxima [A]
time = 0.48, size = 15, normalized size = 0.62 \begin {gather*} \frac {\arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2+a),x, algorithm="maxima")

[Out]

arctan(b*x/sqrt(a*b))/sqrt(a*b)

________________________________________________________________________________________

Fricas [A]
time = 1.04, size = 67, normalized size = 2.79 \begin {gather*} \left [-\frac {\sqrt {-a b} \log \left (\frac {b x^{2} - 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right )}{2 \, a b}, \frac {\sqrt {a b} \arctan \left (\frac {\sqrt {a b} x}{a}\right )}{a b}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2+a),x, algorithm="fricas")

[Out]

[-1/2*sqrt(-a*b)*log((b*x^2 - 2*sqrt(-a*b)*x - a)/(b*x^2 + a))/(a*b), sqrt(a*b)*arctan(sqrt(a*b)*x/a)/(a*b)]

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs. \(2 (22) = 44\).
time = 0.04, size = 53, normalized size = 2.21 \begin {gather*} - \frac {\sqrt {- \frac {1}{a b}} \log {\left (- a \sqrt {- \frac {1}{a b}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{a b}} \log {\left (a \sqrt {- \frac {1}{a b}} + x \right )}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x**2+a),x)

[Out]

-sqrt(-1/(a*b))*log(-a*sqrt(-1/(a*b)) + x)/2 + sqrt(-1/(a*b))*log(a*sqrt(-1/(a*b)) + x)/2

________________________________________________________________________________________

Giac [A]
time = 0.54, size = 15, normalized size = 0.62 \begin {gather*} \frac {\arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2+a),x, algorithm="giac")

[Out]

arctan(b*x/sqrt(a*b))/sqrt(a*b)

________________________________________________________________________________________

Mupad [B]
time = 4.70, size = 16, normalized size = 0.67 \begin {gather*} \frac {\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a + b*x^2),x)

[Out]

atan((b^(1/2)*x)/a^(1/2))/(a^(1/2)*b^(1/2))

________________________________________________________________________________________